// AllSHIDViewer.cpp: implementation of the AllSHIDViewer class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "phsshare.h"
#include "AllSHIDViewer.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

AllSHIDViewer::Generator AllSHIDViewer::m_Register;

IMPLEMENT_DYNAMIC_EX(AllSHIDViewer, UeObject);

AllSHIDViewer::AllSHIDViewer()
{

}

AllSHIDViewer::~AllSHIDViewer()
{

}

void AllSHIDViewer::Register(INT nID, AllSHIDViewerInfo* pInfo)
{
	m_Register.Generate()->Register(nID, pInfo);
}

AllSHIDViewer* AllSHIDViewer::Instance()
{
	AllSHIDViewerInfo* pInfo = NULL;
	m_Register.Generate()->FindInfo(eAUTOCADVIEWER, pInfo);
	ASSERT(pInfo);

	return pInfo->CreateObject();
}